home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
EnigmA Amiga Run 1996 June
/
EnigmA AMIGA RUN 08 (1996)(G.R. Edizioni)(IT)[!][issue 1996-06][EARSAN CD VII].iso
/
earcd
/
comm2
/
mmsrxprt.lha
/
REXX
/
MM_UserExport.rexx
Wrap
OS/2 REXX Batch file
|
1996-04-26
|
2KB
|
68 lines
/*
** $VER: MM_UserExport 0.65 (12.03.96)
**
** Written by Paolo Carotenuto
**
*/
IF ~SHOW('l',"rexxsupport.library") THEN;DO
IF ~ADDLIB("rexxsupport.library",0,-30,0) THEN;DO
SAY "Could not open rexxsupport.library"
EXIT 10
END
END
DROP MM.
PARSE ARG MM.Port MM.Switch
MM.PrgName='
MM_UserExport
v0.65 -+- (C) 1994-96 by Paolo Carotenuto (2:335/202.0)'
MM.Up='A'
IF MM.port='?'|MM.port='' THEN;DO
SAY ''
SAY '
'mm.prgname
SAY ''
SAY 'Usage:'
SAY 'Rx MM_UserExport <%port|port> <switch>'
SAY ''
SAY 'Switches:'
SAY '-c - Use this switch at the user login'
SAY '-s - Use this switch at the user logoff'
SAY ''
EXIT
END
IF UPPER(MM.Switch)='-C' THEN;DO
SAY ''
SAY 'MM_UserExport -> Start'
SAY ''
OPEN('Temp','T:UserExport.'||MM.Port,'W')
CLOSE('Temp')
EXIT
END
ADDRESS 'MAILMANAGER'
SAY MM.PrgName
SAY '~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~'
SAY ''
MM_AreasWin
IF Rc ~=0 THEN;DO
Text='cThere is an ARexx script waiting.'||'0A'x||'Please go back to the Areas Window as soon as possible'
Gadget="*_Ok"
MM_Requester '"MM Requester"' 'Text' 'Gadget'
END
DO UNTIL Rc=0
CALL Delay(250)
MM_AreasWin
END
MM_GetAreas MM.Aree
MM.Last=SUBWORD(STATEF('T:UserExport.'||MM.Port),5,2)
PARSE VAR MM.Last Day Minute
MM_DeleteFile 'T:UserExport.'||MM.Port
DO i=0 FOR MM.Aree.Count
MM_GetAreaInfo MM.Aree.i Info
SAY MM.Up'Area :' MM.Aree.i
MM.Data=SUBWORD(STATEF(Info.Path),5,2)
PARSE VAR MM.Data Day2 Minute2
IF Minute2>Minute THEN;DO
IF Day2>= Day THEN MM_Export MM.Aree.i
END
SAY MM.Up'Area : '
END
SAY MM.Up'Done !! '
MM_Free
EXIT